/**
 * @description
 */
const Shop = require('../../models/Shop')
!(async () => {
  //创建商店
  /* await Shop.create({
    name: '沃尔玛',
    imgUrl: '/images/shop/wmt.jpeg',
    sales: 1000,//月售
    expressLimit: 0,//起送价格
    expressPrice: 5,//快递价格
    slogan: 'VIP尊享 89元减4元运费券'
  })
  await Shop.create({
    name: '山姆会员商店',
    imgUrl: '/images/shop/sam.jpeg',
    sales: 2000,//月售
    expressLimit: 0,//起送价格
    expressPrice: 5,//快递价格
    slogan: '联合利华洗护满10减5'
  }) */
  //附近商店
  /* const result=await Shop.find().sort({_id:-1})
  console.log(result); */

  //获取单个商店，根据id
  const shop = await Shop.findById('6095f02a6c8bc6187445a480')
  console.log(shop);
})()